from django.urls import re_path

from recruits import views

urlpatterns = [
    re_path('^city/hotlist/$', views.CityView.as_view()),
    re_path('^enterprise/(?P<pk>\d+)/visit/$', views.AddEnterpriseCountView.as_view()),
    re_path('^recruits/search/recommend/$', views.RecommendJobView.as_view()),
    re_path('^recruits/search/latest/$', views.LatestJobView.as_view()),
    re_path('^enterprise/search/hotlist/$', views.HotEnterpriseView.as_view()),
    re_path('^enterprise/(?P<pk>\d+)/collect/$', views.ColctEnterpriseView.as_view()),
    re_path('^recruits/(?P<pk>\d+)/collect/$', views.ColctEnterpriseView.as_view()),
    re_path('^recruits/search/city/keyword/$', views.SearchRecruitView.as_view()),
    re_path('^recruits/(?P<pk>\d+)/$', views.RecruitsDetailView.as_view()),
    re_path('^enterprise/(?P<pk>\d+)/$', views.EnterpriseDetailView.as_view()),
    re_path('^enterprise/(?P<pk>\d+)/cancelcollect/$', views.CancelCollectView.as_view()),
    re_path('^recruits/(?P<pk>\d+)/cancelcollect/$', views.CancelCollectedView.as_view()),

]
